package com.pdf.pdfserver.vo;

import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.solr.core.mapping.SolrDocument;

import java.io.Serializable;

/**
 * @Author songfz
 * @Description 文章vo对象
 * @Date 2022/1/10
 */
@SolrDocument(collection = "new_core")
public class ArticleVO implements Serializable {

    @Field(value = "art_id")
    private   String id;
    /**
     * 标题
     */
    @Field(value = "art_title")
    private  String title;
    /**
     * 主题
     */
    @Field(value = "art_subject")
    private  String subject;

    /**
     * 作者
     */
    @Field(value = "art_author")
    private  String author;
    /**
     * 内容
     */
    @Field(value = "art_content")
    private String content;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public ArticleVO() {
    }

    public ArticleVO(String id, String title, String subject, String author, String content) {
        this.id = id;
        this.title = title;
        this.subject = subject;
        this.author = author;
        this.content = content;
    }

    @Override
    public String toString() {
        return "ArticleVO{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", subject='" + subject + '\'' +
                ", author='" + author + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
